[index]

MouseV Function

Syntax: the mouseV or mouseV()

Description

The mouseV function returns the current vertical location of the mouse. The location is measured in pixels from the top edge of the card to the mouse pointer.

Notes

As indicated in the example, the mouseV function can be used to change the shape of the cursor, depending on its location on the screen.

Examples

Add the following handler to the script of the current card. When the mouse button is pressed while the mouse pointer is in the 75-pixel-wide strip along the top of the card, the pointer becomes an I-beam cursor. Otherwise the cursor is an arrow. on mouseDown if the mouseV < 75 then set the cursor to ibeam else set the cursor to arrow end if
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.